﻿<%@ Page Language="C#" MasterPageFile="~/Template.master" AutoEventWireup="true" CodeFile="ActionsRoles.aspx.cs" Inherits="ActionsRoles" Title="Ghasam Action Roles" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <div>
        <div class="title">
            مدیریت سطوح دسترسی
        </div>
        <hr />
        
        <div>
        نام گروه
        <asp:DropDownList ID="drpRoles" AutoPostBack="true" runat="server" OnSelectedIndexChanged="drpRoles_SelectedIndexChanged">
        </asp:DropDownList>
        </div>
        
        <div style="margin:10px 0 0 0;">
            <asp:GridView ID="gvActionRoles" runat="server" DataKeyNames="Name" AutoGenerateColumns="False" OnRowDeleting="gvActionRoles_RowDeleting">
                <Columns>
                    <asp:BoundField DataField="Description" HeaderText="عملیات" SortExpression="Description" />
                    <asp:BoundField DataField="Id" HeaderText="ActionId" SortExpression="Id"
                        Visible="False" />
                    <asp:BoundField DataField="Name" HeaderText="ActionName" SortExpression="Name" Visible="False" />
                    
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:LinkButton ID="RemoveAccess" runat="server" CausesValidation="False" CommandName="Delete">
                                <img src="App_Themes/<%=Page.Theme %>/images/delete.gif" alt="" style="border:0;" />
                            </asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        
        <div style="margin:10px 0 0 0">
            اضافه کردن دسترسی
            <asp:DropDownList ID="drpAccess" runat="server">
            </asp:DropDownList>
            
            <asp:Button ID="btnAdd" Text="ذخیره" runat="server" OnClick="btnAdd_Click" />
        </div>
    </div>
</asp:Content>

